const URL_SHEN =
  "https://www.fastmock.site/mock/def007e9d6195651eb6d27f46270feb9/home/api";

const http = {
  get(url) {
    // fetch的get请求没有第二个参数，只能在url后面做拼接
    return fetch(URL_SHEN + url)
      .then((response) => response.json())
      .then((res) => {
        return res;
      });
  },
};

export default http;
